import { get, post, put, del } from '../http/request'

// 获取员工列表
export function getEmployees(params) {
    return get("/employees/getEmployees", params)
}

// 添加员工
export function addEmployee(params) {
    return post("/employees/insertEmployees", params)
}

// 更新员工信息
export function updateEmployee(params) {
    return put("/employees/updateEmployeesById", params)
}

// 删除员工
export function deleteEmployee(id) {
    return del("/employees/deleteEmployeesById", { id })
}

// 更改员工状态
export function updateEmployeeStatus(params) {
    return post("/employees/changeEmployeeStatus", params)
}

// 根据ID获取员工信息
export function getEmployeeById(id) {
    return get("/employees/getEmployeesById", { id })
}





